package com.qf.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("a")
public class FromController {
    @RequestMapping("b")
    public String getFrom(HttpServletRequest request){
        String name = request.getParameter("name");
        String password = request.getParameter("password");
        String age = request.getParameter("age");
        String birthday = request.getParameter("birthday");
        request.setAttribute("name",name);
        request.setAttribute("password",password);
        request.setAttribute("age",age);
        request.setAttribute("birthday",birthday);

        return "show";
    }
}
